package org.realogic.cfm.startup;

import org.springframework.context.ApplicationContextInitializer;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 
 * 利用spring mvc servlet的初始化机制
 * <p>
 * 建议不要
 * <p>
 * web.xml
 * <p>
 * <servlet>
 * <p>
 * &nbsp;<description>spring mvc servlet</description>
 * <p>
 * &nbsp;<servlet-name>dispatcherServlet</servlet-name>
 * <p>
 * &nbsp;<servlet-class>xxxServlet</servlet-class>
 * <p>
 * &nbsp;<init-param>
 * <p>
 * &nbsp;&nbsp;<param-name>contextInitializerClasses</param-name>
 * <p>
 * <param-value>org.realogic.cfm.startup.KServletContextInitializer</param-value
 * >
 * <p>
 * </init-param>
 * <p>
 * <load-on-startup>1</load-on-startup>
 * <p>
 * </servlet>
 * 
 */
public class KServletContextInitializer implements ApplicationContextInitializer<ConfigurableApplicationContext> {

	public void initialize(final ConfigurableApplicationContext applicationContext) {
		// 项目启动的时候,预处理某些任务
		System.out.println("项目启动的时候,预处理某些任务");
	}

}
